#pragma once

#include "GLTexture.h"
#include "DataFileLoader.h"

class CGLTextureFileLoader : public CDataFileLoader<GLTexture>
{
protected:

#ifdef __WINDOWS__	

	void LoadTGAResource(char*  filename);				// Load a targa from the resources
	void LoadBMPResource(char*  filename);				// Load a bitmap from the resources
	void LoadFromResource(char*  filename);				// Load the texture from a resource
	void LoadTGA(char*  filename);				        // Loads a targa  file
	void LoadBMP(char*  filename);			            // Loads a bitmap file

#endif		

	void LoadPNG(char*  filename);                      // Loads a png    file
    
public:

	CGLTextureFileLoader(void);
	virtual ~CGLTextureFileLoader(void);

	void Load(GLTexture* pResource);
};
